<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * 定时任务类
 */
class TimedTask extends CI_Controller{
    public function __construct(){
        parent::__construct();
        $this->load->library('request');  //自定义
        $this->load->library('response'); //自定义
    }   


   /**
     * [unLockOrder 解锁超时未支付的订单：未缴纳保证金，并且还原任务状态]
     * @return [type] [description]
    */
    public function unLockOrder(){
        if($this->input->method()=="get"){       
            $reqData = $this->request->getGetData();
            log_message('info', 'timedtask/unLockOrder,data:'.json_encode($reqData)); 

            $this->load->model("orderModel");
            $this->orderModel->adminUnLockOrder();
            $this->response->sendData(0);return ;    
        }
        else{
            $this->response->sendData(1001);return ;
        }

    } 
 


    


    
}